//
// Created by zengyuhao on 25-4-29.
//

#ifndef ZORAL_PRINT_HELPER_H
#define ZORAL_PRINT_HELPER_H

#include <vector>

template<typename T>
std::ostream &operator<<(std::ostream &os, const std::vector<T> &vec)
{
    os << "[";
    for (size_t i = 0; i < vec.size(); ++i)
    {
        os << vec[i];
        if (i != vec.size() - 1)
            os << ", ";
    }
    os << "]";
    return os;
}
#endif // ZORAL_PRINT_HELPER_H
